JNI

JNI 相关

JNI Note

NewStringUTF

1
2
3
4
5
6
7
8

member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean...

1. //用C语言格式
return (*env)->NewStringUTF(env, "Hello JNI !");

2. //C++格式
return env->NewStringUTF((char *)"Hello JNI !");
0%